module.exports =  (router) => {
  router.get('/welcome', async function (ctx, next) {
    ctx.state = {
      title: 'koa2 title'
    };

    await ctx.render('welcome', {title: ctx.state});
  })

  router.get('/article/detail/:id',require('../controller/article').detail)
  router.post('/article/create',require('../controller/article').create)
  router.post('/signup', require('../controller/user').signup)
  router.post('/signin', require('../controller/user').signin)
}
